function from_check_login(form,domain){
	$.ajax({
		type: "post",
		url: domain+"index.php/common_login_manage/check_login",
		dataType:"json",
		beforeSend: function(XMLHttpRequest){
		
		},
		success: function(data, textStatus){
	        if(data.result==false){
	        	
	        	bootbox.prompt_ssi_login("您的登录已经过期,请重新输入密码再次登录", function(result) {
	        	  if (result === null) {
	        		  } else {
	        			  
        			     form_sign(domain,result,function(login_result){
        			    	 if (login_result.result==false) {
        			    		 bootbox.alert(login_result.message);
							}else{
								form.submit();
							}
        			     });            
	        		  }
	        		});
	        }else{
	        	form.submit();
    		}
		},
		complete: function(XMLHttpRequest, textStatus){
		},
		error: function(){
		}
	});
}

function form_sign(domain,password_value,callback){
	$.ajax({
		type: "post",
		url: domain+"index.php/common_login_manage/form_sign",
		dataType:"json",
		data:{password:password_value},
		beforeSend: function(XMLHttpRequest){
			
		},
		success: function(data, textStatus){
			callback(data);
		},
		complete: function(XMLHttpRequest, textStatus){
		},
		error: function(){
		}
	});
	
}
$(document).ready(function () {
	if(document.body.scrollHeight== document.body.clientHeight){
		$(".back-to").hide();
	}
    var bt = $('#toolBackTop');
    var sw = document.body.clientWidth;
    var limitsw = (sw - 1150) / 2 - 35;
    if (limitsw > 0){
            limitsw = parseInt(limitsw);
            bt.css("right",limitsw);
    }

    $(window).resize(function() {
    	var bt = $('#toolBackTop');
        var sw = document.body.clientWidth;
        var limitsw = (sw - 1150) / 2 - 35;
        if (limitsw > 0){
                limitsw = parseInt(limitsw);
                bt.css("right",limitsw);
        }else{
        	bt.hide();
        }
    });
  
});